package top.houry.stack;

import top.leetcode._066;

import java.util.Random;

/**
 * @Desc
 * @Author houruiyang
 * @Date 2022/12/27
 **/
public class B {
    public static void main(String[] args) {

//        int  a = 10;
//
//        int b = 10 << 3;
//
//        System.out.println(b);

        int a = 1;
        int b = 20;

        a = b-a; // 19
        b = b-a; // 1
        a = a+ b;// 2


//        System.out.println(((11 & 9)^3)|12);
//
//        Base b = new Subclass();
//        System.out.println(b.x);
//        System.out.println(b.method());
//
//        Person p = new Stu();
//
//        p.shout();
//
//        int aa= (int) (123434 * Math.random());
//        int bb= (int) (123434 * Math.random());
//        if (aa == bb) {
//            System.out.println();
//        }

    }
}

class Base {
    int x = 2;

    int method() {
        return x;
    }
    public Base (){
        System.out.println("bbbb");
    }
}

class Subclass extends Base {
    int x = 3;

    int method() {
        return x;
    }

    public Subclass() {
        System.out.println("sssss");
    }
}

class Person{

    String name = "person" ;

    public void shout(){

        System.out.println(name);

    }

}

class Stu extends Person{

    String name = "student" ;

    String school = "school" ;

}
